/**
 * @TODO
 * @Author xu
 * 2025/2/21
 */
public class work10 {public static void main(String[] args) {
    int number = 123;

    int units = number % 10;
    int tens = (number / 10) % 10;
    int hundreds = (number / 100) % 10;

    System.out.println(number + "的个位是" + units + ", 十位是" + tens + ", 百位是" + hundreds + "。");
}

}
